using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using HalalCheck.CustomViews;
using HalalCheck.Droid.CustomRendering;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using XLabs.Forms.Controls;

[assembly: ExportRenderer(typeof(TileViewHalal), typeof(TileViewRenderer))]
namespace HalalCheck.Droid.CustomRendering
{
    public class TileViewRenderer : LabelRenderer
    {
    /*    public TileBackground()
        {
            SetBackgroundResource(Resource.Drawable.tile);
            Background = Resources.GetDrawable(Resource.Drawable.tile);
        }

        protected override void OnElementChanged(ElementChangedEventArgs<Frame> e)
        {
            base.OnElementChanged(e);
            if (Control != null)
            {
                // do whatever you want to the textField here!
                Control.SetBackgroundColor(global::Android.Graphics.Color.DarkGray);
            }
        }*/

        protected override void OnElementChanged(ElementChangedEventArgs<Label> e)
        {
            base.OnElementChanged(e);
            if (Control != null)
            {
                // do whatever you want to the textField here!
                Control.SetBackgroundResource(Resource.Drawable.repeat);
            }
        }
    }
}